import { checkPhoneNotRequired } from "libs/check";

export default {
  userName: [
    {
      required: true,
      message: "请输入登录名",
      trigger: ["blur", "change"],
    },
  ],
  nickName: [
    {
      required: true,
      message: "请输入姓名",
      trigger: ["blur", "change"],
    },
  ],
  phone: [
    {
      validator: checkPhoneNotRequired,
      trigger: ["blur", "change"],
    },
  ],
  dept: [
    {
      required: true,
      message: "请选择所属部门",
      trigger: ["blur", "change"],
    },
  ],
};
